#pragma once
#include <protocolProcesser.h>
#include <deviceNormalParam.h>

#pragma pack(1)
struct masterStructSetReadSN
{
    uint8_t setSn[DEVICE_SERIAL_NUMBER_SIZE];
};

struct deviceStructSetReadSN
{
    char version[DEVICE_VERSION_STR_SIZE];
    char serialnumber[DEVICE_SERIAL_NUMBER_SIZE];
    uint8_t deviceType;
};
#pragma pack()

#if COMMAND_MASTER_CALL_DEFINE
int masterCallbackSetReadSN(void *inputstring, uint32_t *inputsize, void *userdata);
int masterWaitResponseSetReadSN(struct protocolProcessorInform *processer, struct masterStructSetReadSN *indata,
                                  uint16_t insize, uint8_t *devaddr);
#endif
#if COMMAND_DEVICE_CALL_DEFINE
int deviceCallbackSetReadSN(void *inputstring, uint32_t *inputsize, void *userdata);
#endif
